/**
 * ----------------------------------------------------------------------------
 * Copyright Jens Konopka
 * 
 * Alle Rechte vorbehalten.
 * Licence: Apache 2.0
 * ----------------------------------------------------------------------------
 *
 * created on 06.03.2012 by jk
 */
package de.sql.toolkit.model;

import java.io.Serializable;

/**
 * @author jk
 * 
 */
public class View implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7349473370371285964L;
	private String catalog;
	private String schema;
	private String table;
	private String definition;
	private String checkOption;
	private boolean updatable;

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		final StringBuilder builder = new StringBuilder();
		builder.append("View [catalog=");
		builder.append(catalog);
		builder.append(", schema=");
		builder.append(schema);
		builder.append(", table=");
		builder.append(table);
		builder.append(", definition=");
		builder.append(definition);
		builder.append(", checkOption=");
		builder.append(checkOption);
		builder.append(", updatable=");
		builder.append(updatable);
		builder.append("]");
		return builder.toString();
	}

	/**
	 * @return the catalog
	 */
	public String getCatalog() {
		return catalog;
	}

	/**
	 * @param catalog the catalog to set
	 */
	public void setCatalog(String catalog) {
		this.catalog = catalog;
	}

	/**
	 * @return the schema
	 */
	public String getSchema() {
		return schema;
	}

	/**
	 * @param schema the schema to set
	 */
	public void setSchema(String schema) {
		this.schema = schema;
	}

	/**
	 * @return the table
	 */
	public String getTable() {
		return table;
	}

	/**
	 * @param table the table to set
	 */
	public void setTable(String table) {
		this.table = table;
	}

	/**
	 * @return the definition
	 */
	public String getDefinition() {
		return definition;
	}

	/**
	 * @param definition the definition to set
	 */
	public void setDefinition(String definition) {
		this.definition = definition;
	}

	/**
	 * @return the checkOption
	 */
	public String getCheckOption() {
		return checkOption;
	}

	/**
	 * @param checkOption the checkOption to set
	 */
	public void setCheckOption(String checkOption) {
		this.checkOption = checkOption;
	}

	/**
	 * @return the updatable
	 */
	public boolean isUpdatable() {
		return updatable;
	}

	/**
	 * @param updatable the updatable to set
	 */
	public void setUpdatable(boolean updatable) {
		this.updatable = updatable;
	}

}
